home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 February / SGI IRIX 6.5 Complementary Applications 2004 February.iso / dist / cde.idb / usr / dt / share / include / Xm / ProtocolsP.h.z / ProtocolsP.h
Encoding:
C/C++ Source or Header  |  2003-11-18  |  3.1 KB  |  114 lines

  1. /*
  2.  * ProtocolsP.h
  3.  *
  4.  * Copyright 2000, Silicon Graphics, Inc.
  5.  * ALL RIGHTS RESERVED
  6.  * 
  7.  * UNPUBLISHED -- Rights reserved under the copyright laws of the United
  8.  * States.   Use of a copyright notice is precautionary only and does not
  9.  * imply publication or disclosure.
  10.  *
  11.  * U.S. GOVERNMENT RESTRICTED RIGHTS LEGEND:
  12.  * Use, duplication or disclosure by the Government is subject to restrictions
  13.  * as set forth in FAR 52.227.19(c)(2) or subparagraph (c)(1)(ii) of the Rights
  14.  * in Technical Data and Computer Software clause at DFARS 252.227-7013 and/or
  15.  * in similar or successor clauses in the FAR, or the DOD or NASA FAR
  16.  * Supplement.  Contractor/manufacturer is Silicon Graphics, Inc.,
  17.  * 2011 N. Shoreline Blvd. Mountain View, CA 94039-7311.
  18.  *
  19.  * THE CONTENT OF THIS WORK CONTAINS CONFIDENTIAL AND PROPRIETARY
  20.  * INFORMATION OF SILICON GRAPHICS, INC. ANY DUPLICATION, MODIFICATION,
  21.  * DISTRIBUTION, OR DISCLOSURE IN ANY FORM, IN WHOLE, OR IN PART, IS STRICTLY
  22.  * PROHIBITED WITHOUT THE PRIOR EXPRESS WRITTEN PERMISSION OF SILICON
  23.  * GRAPHICS, INC.
  24.  */
  25. /* 
  26.  * @OSF_COPYRIGHT@
  27.  * (c) Copyright 1990, 1991, 1992, 1993, 1994 OPEN SOFTWARE FOUNDATION, INC.
  28.  * ALL RIGHTS RESERVED
  29.  *  
  30. */ 
  31. /*
  32.  * HISTORY
  33.  * Motif Release 1.2.5
  34. */
  35. /*   $XConsortium: ProtocolsP.h /main/cde1_maint/2 1995/08/18 19:15:35 drk $ */
  36. /*
  37. *  (c) Copyright 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  38. #ifndef _XmProtocolsP_h
  39. #define _XmProtocolsP_h
  40.  
  41. #include <Xm/Protocols.h>
  42. #include <Xm/ExtObjectP.h>
  43. #ifdef __cplusplus
  44. extern "C" {
  45. #endif
  46.  
  47. typedef struct _XmProtocolClassPart{
  48.     XtPointer    extension;
  49. }XmProtocolClassPart;
  50.  
  51. typedef struct _XmProtocolClassRec{
  52.     ObjectClassPart    object_class;
  53.     XmExtClassPart    ext_class;
  54.     XmProtocolClassPart    protocol_class;
  55. }XmProtocolClassRec, *XmProtocolObjectClass;
  56.  
  57. typedef struct _XmProtocolPart{
  58.     XtCallbackRec    pre_hook, post_hook;
  59.     XtCallbackList    callbacks;
  60.     Atom        atom;
  61.     Boolean        active;
  62. } XmProtocolPart, *XmProtocolPartPtr;
  63.  
  64. typedef struct _XmProtocolRec{
  65.     ObjectPart            object;
  66.     XmExtPart            ext;
  67.     XmProtocolPart        protocol;
  68. }XmProtocolRec, *XmProtocol, **XmProtocolList;
  69.  
  70. #ifndef XmIsProtocol
  71. #define XmIsProtocol(w) XtIsSubclass(w, xmProtocolObjectClass)
  72. #endif /* XmIsProtocol */
  73.  
  74. /* Class record constants */
  75.  
  76. externalref XmProtocolClassRec     xmProtocolClassRec;
  77. externalref WidgetClass xmProtocolObjectClass;
  78.  
  79. typedef struct _XmProtocolMgrRec{
  80.     Atom        property;
  81.     XmProtocolList     protocols;
  82.     Cardinal        num_protocols;
  83.     Cardinal        max_protocols;
  84. }XmProtocolMgrRec, *XmProtocolMgr, **XmProtocolMgrList;
  85.  
  86.  
  87. typedef struct _XmAllProtocolsMgrRec{
  88.   XmProtocolMgrList    protocol_mgrs;
  89.   Cardinal        num_protocol_mgrs;
  90.   Cardinal        max_protocol_mgrs;
  91.   Widget        shell;
  92. }XmAllProtocolsMgrRec, *XmAllProtocolsMgr;
  93.     
  94.  
  95. /********    Private Function Declarations    ********/
  96. #ifdef _NO_PROTO
  97.  
  98. extern void _XmInstallProtocols() ;
  99.  
  100. #else
  101.  
  102. extern void _XmInstallProtocols( 
  103.                         Widget w) ;
  104.  
  105. #endif /* _NO_PROTO */
  106. /********    End Private Function Declarations    ********/
  107.  
  108.  
  109. #ifdef __cplusplus
  110. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  111. #endif
  112.  
  113. #endif /* _XmProtocolsP_h */
  114.